GETUID

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

getuid, geteuid, getgid, getegid - get real user, effective user,
                                   real group and effective group IDs  

SYNOPSIS

#include <sys/types.h>
#include <unistd.h>

uid_t getuid(void);

uit_t geteuid(void);

gid_t getgid(void);

gid_t getegid(void);
 

DESCRIPTION

getuid returns the real user ID of the calling process. geteuid returns the effective user ID of the calling process. getgid returns the real group ID of the calling process. getegid returns the effective group ID of the calling process.  

SEE ALSO

setuid(3), setgid(3), Pgetuid(2), Pgeteuid(2), Pgetgid(2), Pgetegid(2)  

NOTES

On UN*X systems, these calls have the type unsigned short, which is equal to uid_t and gid_t. When MiNT is not active, these calls are pretty bogus. Pgeteuid and Pgetegid have only been available since MiNT 0.95
 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
NOTES

This document was created by man2html, using the manual pages.
Time: 11:15:05 GMT, June 22, 2025